<script>
import { mapMutations, mapState } from 'vuex';

export default {
    methods: mapMutations({
        increment: "muduleA/increment"
    }),
    computed: mapState({
        person: state => state.muduleA.personNum
    })
}
</script>

<template>
    <p>personNum:{{ person }}</p>
    <button @click="increment">changeNum</button>
</template>

